home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 86
/
(Vol 86) My Disc.iso
/
Games
/
pet_1112.swf
/
scripts
/
DefineSprite_451
/
frame_1
/
DoAction.as
Wrap
Text File
|
2009-04-14
|
2KB
|
67 lines
function resetButtons()
{
caurina.transitions.Tweener.addTween(doneBtn_mc,{_alpha:0,time:0.5});
caurina.transitions.Tweener.addTween(smallCorner_mc,{_y:457,time:0.5,delay:0.3});
started = false;
}
function showDoneBtn()
{
setTimeout(function()
{
doneBtn_mc.gotoAndPlay(2);
}
,600);
caurina.transitions.Tweener.addTween(doneBtn_mc,{_alpha:100,time:0.5,delay:0.9});
caurina.transitions.Tweener.addTween(smallCorner_mc,{_y:400,time:0.5,transition:"easeOutBounce",delay:0.6});
doneBtn_mc._visible = true;
}
function playAgain()
{
unusedRandoms = new Array();
var _loc2_ = 0;
while(_loc2_ < 10)
{
unusedRandoms.push(_loc2_);
_loc2_ = _loc2_ + 1;
}
matches = 0;
started = false;
nextMatchNum = getUnusedRandom(unusedRandoms);
magenta.resetEverything();
magenta.isIdle = true;
if(doors_mc._currentframe != 1)
{
doors_mc.gotoAndPlay("close");
}
if(doors_mc._currentframe != 1)
{
doors_mc.gotoAndPlay("close");
}
stopAllSounds();
_root.sounds.loopSound("bmdg_gameloopv2",99999);
sounds.JOE_BMMDU_008.start();
scoreBoard_mc.gotoAndPlay(2);
gameTimeouts[69] = setTimeout(nextMatch,3800);
}
stop();
magenta.isMagenta = true;
doors_mc.onRelease = function()
{
};
doors_mc.useHandCursor = false;
eventCover_mc._visible = false;
eventCover_mc.onRelease = function()
{
};
eventCover_mc.useHandCursor = false;
printBtn_mc._visible = false;
doneBtn_mc.onClick = function()
{
attachMovie("youDone","youDone_mc",this.getNextHighestDepth());
};
doneBtn_mc.onHover = function()
{
sounds.stopStound("all");
sounds.done.start();
};